home *** CD-ROM | disk | FTP | other *** search
- #This script should be renamed: login.cmd
- #Set your IP address to: 1.1.1.1
- #Set the Name Server to: 165.87.194.244
- #Set the Domain Suffix to: ibm.net
- #Select: Internal Slip
- #Select: Hardware Handshake
- #Select: DCD (RLSD) check
- #Make sure your Slip Port and Baud Rate are entered correctly.
- #If unsuccessfull in sending the & to the gateway try to enter the next command from a dos prompt before dialing :
- #mode com1:baud=9600 data=7 stop=1 parity=even
- #(replace 9600 and com1 with your configuration information)
- #------------------------------------------------------------------------
- # trace on
- # echo on
- #
- # Fill in your userid, account and the gateway telephone number.
- #
- %attempts = 10
- $number = ""
- $username = "xxxx"
- $account = "xxxx"
- #
- # Set modem to indicate DCD. Append your modem string to the end of the next
- # output line if you can't get connected with just the at&c1, else phone the
- # internet helpdesk for a modemstring. The default string that you can use
- # is : E0Q0S0=0V1X1&C1&D2
- #
- $modemsetup = "E0Q0S0=0V1X1&C1&D2"
- $prompt = "=>"
- #
- # For every variable defined there is a if statement. To bypass one of questions
- # insert #'s in front of the 3 statements.
- #
- if [query $number "Enter your dial up phone number"]
- save $number
- end
- #
- if [query $account "Enter your IBM account account"]
- save $account
- end
- #
- if [username "Enter your IBM login username"]
- save $username
- end
- #
- if [password "Enter your IBM login password"]
- save $password
- end
- #
- # initialize modem
- #
- set dtr off
- set rts off
- set rts on
- set dtr on
- output "atz"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output "at"$modemsetup\13
- input 10 OK\n
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- output "atdt"$number\13
- %ok = [input 60 NECT]
- %n = %n + 1
- until %ok
- input 10 \n
- #
- # wait till it's safe to send because some modem's hang up
- # if you transmit during the connection phase
- #
- wait 30 dcd
- output &
- input 30 $prompt
- output 1.1\n
- input 30 $prompt
- output INTERNET\n
- input 30 $prompt
- output $account $username $password\n
- address 30
- input 30 \n
- output -i\n
- input 30 ow